Logic gates using Transistors